package com.ruoyi.cat.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 抽奖机会对象 cat_chance
 * 
 * @author ruoyi
 * @date 2024-12-30
 */
public class CatChance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 剩余抽奖数 */
    @Excel(name = "剩余抽奖数")
    private Long remainingChances;

    /** 1微信 2朋友圈 3浏览器 */
    @Excel(name = "1微信 2朋友圈 3浏览器")
    private String invitationSource;

    /** 文章任务id */
    @Excel(name = "文章任务id")
    private Long articleId;

    private Long referenceId;

    private String nickName;

    public Long getReferenceId() {
        return referenceId;
    }

    public void setReferenceId(Long referenceId) {
        this.referenceId = referenceId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setRemainingChances(Long remainingChances) 
    {
        this.remainingChances = remainingChances;
    }

    public Long getRemainingChances() 
    {
        return remainingChances;
    }
    public void setInvitationSource(String invitationSource) 
    {
        this.invitationSource = invitationSource;
    }

    public String getInvitationSource() 
    {
        return invitationSource;
    }
    public void setArticleId(Long articleId) 
    {
        this.articleId = articleId;
    }

    public Long getArticleId() 
    {
        return articleId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("remainingChances", getRemainingChances())
            .append("invitationSource", getInvitationSource())
            .append("articleId", getArticleId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
